package com.he.controller;

import com.he.pojo.CommonResult;
import com.he.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @GetMapping("/user/getUserById/{userId}")
    public User getUser(@PathVariable("userId") Integer userId){
        User user=new User();
        user.setUserId(userId).setUserName("坤坤,from10001");
        return user;
    }
}
